
#ifndef Lines_AudioManager_h
#define Lines_AudioManager_h

#import <Foundation/Foundation.h>
#import <AVFoundation/AVAudioPlayer.h>
#import <AudioToolbox/AudioServices.h>

@interface AudioManager : NSObject {
    NSMutableDictionary *m_dMusic;
    NSMutableDictionary *m_dSfx;
}

+(AudioManager*)instance;

-(void)preloadMusic:(const char*)_file;
-(void)unloadMusic:(const char*)_file;
-(void)playMusic:(const char*)_file;
-(void)stopMusic:(const char*)_file;
-(void)setMusicVolume:(const char*)_file volume:(float) _volume;
-(void)setMusicLoop:(const char *)_file loop:(bool)_loop;

-(void)setGeneralMusicVolume:(float) _volume;

-(void)preloadSfx:(const char*)_file;
-(void)unloadSfx:(const char*)_file;
-(void)playSfx:(const char*)_file;

@end

#endif
